package cc.verywell.pureblock.msg.nfs.idx.extraDownload;

import java.util.Objects;

/**
* 
* Copyright © 2020 TanYaqiu. All rights reserved.
* @author TanYaqiu 
* @address flat 601
* @date 2020年2月2日 下午3:42:43
*/
final public class DltoolIterator<T> {

	public final DltoolIterator<T> prv;
	public final T t;
	public DltoolIterator(T t) {
		this(null,t);
	}
	private DltoolIterator(DltoolIterator<T> prv, T t) {
		Objects.requireNonNull(t);
		this.prv = prv;
		this.t = t;
	}
	public DltoolIterator<T> toNew(T t){
		return new DltoolIterator<T>(this,t);
	}
	static public <T> DltoolIterator<T> toNew(DltoolIterator<T> prv, T t) {
		return prv==null?new DltoolIterator<>(t):prv.toNew(t);
	}

}
